package com.xuecheng.framework.domain.learning.response;

import com.xuecheng.framework.model.response.ResponseResult;
import com.xuecheng.framework.model.response.ResultCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 学习服务返回根据课程去es查询的视频url实体类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("学习服务返回根据课程去es查询的视频url实体类")
@NoArgsConstructor
public class GetMediaResult extends ResponseResult {
    @ApiModelProperty("视频的播放Url")
    private String fileUrl;

    public GetMediaResult(ResultCode resultCode, String fileUrl) {
        super(resultCode);
        this.fileUrl = fileUrl;
    }
}
